package com.nf.text;

import com.nf.entity.User;
import com.nf.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class text {
    @Test
    void up(){
        ApplicationContext ac= new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService=(UserService)ac.getBean("userServiceImpl");
        userService.getAllUser();

    }
}
